<style type="text/css">
a:link {
	color: #F2CE7D;
}
a:visited {
	color: #F2CE7D;
}
a:hover {
	color: #FFF7E7;
}
body,td {
	color: #b3995d;
	border-bottom-width: none;
	border-bottom-color:#333
}
th {
	color: #CCC;
	border-bottom-color:#333
}
a:active {
	color: #FFF;
}
</style>    
<script>
	$().ready(function(){
		$('#expire').datepicker({
            dateFormat: 'yy-mm-dd'
        });
	});
</script>
    
<div style="background-color: #1A1A1A; layer-background-color: #1A1A1A;">	
	<table>
		<form method="post" action="/project/{{project.id}}/safe_url/">
			<tr><th colspan="2"> Create safe URL</tr></th>
			<tr><td width="98">Client:</td><td width="293">{{project.client.first_name}}, {{project.client.last_name}} (<a href="mailto:{{project.client.email}}">{{project.client.email}}</a>)</td></tr>
			
						<tr><td width="98">E-mail clients:</td>
						<td width="293">{% for email in email %} {{email}} {% endfor %}</td><td><a href="mailto:{% for email in email %} {{email}}, {% endfor %} {{project.client.email}}" title="View project: {{project.title}}">Send e-mail</a></td></tr>
			<tr>
			  <td>Expiration date:</td>
			  <td><input name="expire" id="expire" value="{{su.expire}}"/> (YYYY-MM-DD)</td>
			</tr>
			<tr>
			  <td>Safe URL:</td><td><a href="/project/{{project.id}}/{{su.url}}/" target="_blank">/project/{{project.id}}/{{su.url}}/</a></td></tr>
			<tr><td></td><td><input type="submit" value="Set"/></td></tr>
		</form>                        
	</table>
	<div style="visibility:hidden;">
		<table>                								
			<FORM METHOD=POST ACTION="mailto:kmwa@kth.se" ENCTYPE="text/plain">                
				<tr>
					<td colspan="2">
						<INPUT TYPE="text" NAME="username" value="{{ user.username }}"> : name <BR>
						<INPUT TYPE="text" NAME="email" value="{{ user.email }}"> : user <BR>
							comments <BR>
						<TEXTAREA NAME="COMMENTS" ROWS="10" WRAP="hard"></TEXTAREA>
						<INPUT NAME="redirect" TYPE="hidden" VALUE="index.html">
						<INPUT NAME="NEXT_URL" TYPE="hidden" VALUE="index.html">
						<BR>
						<INPUT TYPE="submit" VALUE="Send">
						<INPUT TYPE="reset" VALUE="Clear">
					</td>
				</tr>
			</FORM>
		</table>
	</div>        
</div>
